package com.groupsix.mapper;

import com.groupsix.entity.Class;
import com.groupsix.entity.ClassExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ClassMapper {


    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("cClassname") String cClassname, @Param("cClassid") Integer cClassid, @Param("cCounsellor") String cCounsellor);
    //获取用户列表
    public List<Class> getClassList(@Param("cClassname") String cClassname, @Param("cClassid") Integer cClassid, @Param("cCounsellor") String cCounsellor, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    public int deleteClass(Integer cId);   //删除班级信息
    public int addClass(Class ucalss);    //添加班级信息
    public int updateClass(Class uclass); //修改班级信息
    public Class findClassById(Integer cId); //通过id查询班级信息
    public List<Class> findClassStudent(Class uclass);//查询班级人员信息
    public List<Class> getAll();







    int countByExample(ClassExample example);

    int deleteByExample(ClassExample example);

    int deleteByPrimaryKey(Integer cId);

    int insert(Class record);

    int insertSelective(Class record);

    List<Class> selectByExample(ClassExample example);

    Class selectByPrimaryKey(Integer cId);

    int updateByExampleSelective(@Param("record") Class record, @Param("example") ClassExample example);

    int updateByExample(@Param("record") Class record, @Param("example") ClassExample example);

    int updateByPrimaryKeySelective(Class record);

    int updateByPrimaryKey(Class record);
}